package com.zheng.russiaRec.controller 
{
	
	import com.zheng.russiaRec.staticData.EventData;
	
	import org.puremvc.as3.interfaces.INotification;
	
	/**
	 * @describe  	create group
	 * @author  	Mr.zheng
	 * @website 	http://blog.sina.com.cn/zihua2007
	 * @time		... 
	 */
	public class C_CreateGroup extends C_BaseCommand
	{
		
		//获得新的liveGroup的数据，check是否GameOver
		override public function execute(notification:INotification):void
		{
			p_cb.createGroup();
			if (!p_cb.canCreateGroup(p_cb.liveGroup)) {
				sendNotification(EventData.C_GAMEOVER);
			}
		}
		
	}
	
}